Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
Discover gists
{ | |
"breadcrumbs.enabled": false, | |
"editor.fontFamily": "'MonoLisa', 'Dank Mono', 'Operator Mono Lig', 'Operator Mono', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontWeight": "400", | |
"editor.cursorBlinking": "smooth", | |
"editor.cursorSmoothCaretAnimation": "explicit", | |
"editor.stickyScroll.enabled": true, | |
"explorer.sortOrder": "type", | |
"workbench.editor.enablePreview": false, | |
"workbench.editor.highlightModifiedTabs": true, |
QGIS3 has a tool called 'gdal2tiles.py' which can generate map tiles, but currently, it only supports TMS, not XYZ. However, QGIS3 loads XYZ by default and requires checkbox for TMS, so it's better to convert TMS to XYZ.
The difference between TMS and XYZ is just the name of Y-coordinate, so renaming works well. tms2xyz.py is a script for that.
exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.
Disk Utility is unable to repair this at first, but the fix is this:
- Use
diskutil list
to find the right drive id. - You want the id under the IDENTIFIER column, it should look like
disk1s1
- Run
sudo fsck_exfat -d <id from above>
. egsudo fsck_exfat -d disk1s3
-d
is debug so you'll see all your files output as they're processed.- Answer
YES
if it gives you the promptMain boot region needs to be updated. Yes/No?
license: bsd-3-clause |
Download release from https://downloads.openwrt.org/releases/21.02.0/targets/bcm27xx/bcm2711/openwrt-21.02.0-bcm27xx-bcm2711-rpi-4-ext4-factory.img.gz
gunzip openwrt-21.02.0-bcm27xx-bcm2711-rpi-4-ext4-factory.img.gz
dd if=openwrt-21.02.0-bcm27xx-bcm2711-rpi-4-ext4-factory.img of=/dev/SDCARD status=progress
mount rootfs to your pc
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Custom Scrollbar</title> | |
<style> | |
.scroll-box { | |
position: relative; | |
/* border-right: 1px solid #000; */ |
A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Custom Scrollbar</title> | |
<style> | |
.scroll-box { | |
position: relative; | |
/* border-right: 1px solid #000; */ |